package com.sugon.entity.vo;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author YuXD
 * @Version 1.0
 * @since 2022/7/4
 */
@Data
public class SparePartSafeStockNewlyAddParam implements Serializable {

    @NotBlank(message = "备件必选！")
    private String sparePartId;

    @NotNull(message = "安全库存数必填！")
    @Min(value = 1L, message = "安全库存数不得小于1")
    private Integer safeNum;

    private String remark;

}
